﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WDA.Core;

namespace Sample
{
   public class SimpleRemoteServiceControllerFactory : IRemoteServiceControllerFactory
   {
      #region IRemoteServiceControllerFactory Members
      public RemoteServiceController Create(Type serviceType, Type monitorType, bool singleThreaded, IEnumerable<RemoteServiceDescription> remoteServices)
      {
         return new SimpleRemoteServiceController(serviceType, monitorType, singleThreaded, remoteServices);
      }
      #endregion
   }

   public class SimpleRemoteServiceController : RemoteServiceController
   {
      public SimpleRemoteServiceController(Type serviceType, Type monitorType, bool singleThreaded, IEnumerable<RemoteServiceDescription> remoteServices)
         : base(serviceType, monitorType, singleThreaded, remoteServices)
      {
      }
      protected override bool TestRequiresBestHostReassesment()
      {
         return true;
      }
   }
}
